import Vue from "vue";
import CollapseTransition from "element-ui/lib/transitions/collapse-transition";

Vue.component("el-collapse-transition", CollapseTransition);
import {
	Radio,
	RadioGroup,
  	RadioButton,
	Form,
	FormItem,
	Checkbox,
	CheckboxButton,
	CheckboxGroup,
	Input,
	Button,
	Dropdown,
	DropdownMenu,
	DropdownItem,
	Loading,
	MessageBox,
	Message,
	DatePicker,
	Select,
	Option,
	Table,
	TableColumn,
	Pagination,
	Autocomplete,
	Dialog,
	Switch,
	Collapse,
	CollapseItem,
	Tooltip,
	Tag,
	Popover,
	Notification,
} from "element-ui";

Vue.use(Input);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(RadioButton);
Vue.use(Radio);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Button);

Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(DatePicker);
Vue.use(Select);
Vue.use(Option);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Pagination);
Vue.use(Autocomplete);
Vue.use(Dialog);
Vue.use(Switch);
Vue.use(Checkbox);
Vue.use(CheckboxButton);
Vue.use(CheckboxGroup);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Tooltip);
Vue.use(Tag);
Vue.use(Popover);

Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
